import React from 'react'

import './style.css'

const Bar = ({ className, left, right, clickBuy }) => {
    return (
        <div className={`cartBar ${className}`}>
            <div className='cartBar-chooseAll'>
                {left}
            </div>
            <div className='cartBar-buy'>
                {right}
                <div
                    className='cartBar-buy_btn'
                    onClick={clickBuy}
                >
                    <span>
                        <i className='iconfont icon-maishui' />
                    </span>
                </div>
            </div>
        </div>
    )
}

export default Bar
